TARGET = ctrlShm Polaris
all: $(TARGET)

ctrlShm:ctrlShm.c CommonShare.c SysInfo.cpp Tool.c
	arm-linux-g++ ctrlShm.c CommonShare.c SysInfo.cpp Tool.c -o ctrlShm

Polaris:main.o SysLog.o ShowImage.o CommonShare.o SysInfo.o NetComm.o  SysCtrl.o Tool.o
	arm-linux-g++ main.o ShowImage.o SysLog.o CommonShare.o SysInfo.o NetComm.o  SysCtrl.o Tool.o -o Polaris  -lpthread -I /home/gec/jpeg/include/ -L /home/gec/jpeg/lib/ -ljpeg
ShowImage.o:ShowImage.cpp
	arm-linux-gcc -c ShowImage.cpp  -I /home/gec/jpeg/include/ -L /home/gec/jpeg/lib/ -ljpeg
main.o:main.cpp 
	arm-linux-g++ -c main.cpp  -lpthread
SysLog.o:SysLog.cpp
	arm-linux-g++ -c SysLog.cpp 
CommonShare.o:CommonShare.c
	arm-linux-g++ -c CommonShare.c
Tool.o:Tool.c
	arm-linux-g++ -c Tool.c
SysInfo.o:SysInfo.cpp
	arm-linux-g++ -c SysInfo.cpp
NetComm.o:NetComm.cpp
	arm-linux-g++ -c NetComm.cpp -lpthread
SysCtrl.o:SysCtrl.cpp
	arm-linux-g++ -c SysCtrl.cpp


.PHONY:clean
clean:
	-rm *.o Polaris ctrlShm 


